﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="ModuleDefinition.ascx.cs"
    Inherits="Portal.Administrator.Modules.ModuleDefinition" %>
<%@ Register Assembly="NCS.WebControl" Namespace="NCS.WebControls" TagPrefix="cc2" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="NCS.Library" Namespace="NCS.Library.Controls"
    TagPrefix="cc3" %>
<asp:UpdatePanel ID="upanelModuleDefinition" runat="server" UpdateMode="Conditional"
    RenderMode="Inline">
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="dtgModules" EventName="RowCommand" />
    </Triggers>
    <ContentTemplate>
        <cc3:GridView ID="dtgModules" runat="server" AutoGenerateColumns="False" BorderColor="Gainsboro"
            BorderStyle="Solid" BorderWidth="1px" CaptionAlign="Top" CellPadding="2" CssClass="Grid"
            Width="100%" meta:resourcekey="dtgModulesResource1" OnRowCommand="dtgModules_RowCommand" AllowPaging="True" PageSize="20">
            <AlternatingRowStyle CssClass="Grid_Raw2" />
            <RowStyle CssClass="Grid_Raw1" />
            <HeaderStyle CssClass="Grid_Top" Font-Bold="True" />
            <Columns>
                <asp:BoundField DataField="ModuleID" Visible="False" meta:resourcekey="BoundFieldResource1" />
                <asp:BoundField DataField="ModuleName" HeaderText="T&#234;n module" meta:resourcekey="BoundFieldResource2" />
                <asp:BoundField DataField="ModuleTitle" HeaderText="Title" meta:resourcekey="BoundFieldResource3" />
                <asp:BoundField DataField="ModuleDescription" HeaderText="M&#244; tả" meta:resourcekey="BoundFieldResource4" />
                <asp:BoundField DataField="ModuleFolder" HeaderText="Thư mục" meta:resourcekey="BoundFieldResource5" />
                <asp:TemplateField HeaderText="Thao t&#225;c" meta:resourcekey="TemplateFieldResource1">
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemTemplate>
                        <cc2:ButtonRoleEdit ID="btnEditModule" runat="server" meta:resourcekey="btnEditModuleResource1"
                            CommandName="editmodule" CssClass="Button" Text="Sửa" CommandArgument='<%# Eval("ModuleID") %>' />
                        <cc2:ButtonRoleDelete ID="btnDeleteModule" runat="server" CommandArgument='<%# Eval("ModuleID") %>'
                            CommandName="deletemodule" CssClass="Button" Text="X&#243;a" meta:resourcekey="btnDeleteModuleResource1" />
                    
</ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </cc3:GridView>
        &nbsp;<cc2:ButtonRoleAdd ID="btnAddModule" runat="server" CssClass="Button" Text="Thêm mới"
            OnClick="btnAddModule_Click" />
    </ContentTemplate>
</asp:UpdatePanel>
